from django.urls import path

from . import views
app_name="blog"
urlpatterns = [
    #path('', views.index, name='index'),
    #path('<int:question_id>/', views.detail, name='detail'),# ex: /polls/5/
    #path('<int:question_id>/results/', views.results, name='results'),# ex: /polls/5/results/
    #path('<int:question_id>/vote/', views.vote, name='vote'),# ex: /polls/5/vote/
    #以上是polls  app里的url，以供参考
    path("entry/<int:num>/",views.entry,name="entry"), #ex: /entry/2/  #写这个文件的目的是，传参，把2 传过去
    path("oldsite/<int:num>/",views.oldsiteentry,name="oldsiteentry"), #ex: /oldsite/2/ #用来承接url重定向
]